
#include "DbElementProvider.h"

//*
//	 *
DbElementProvider * DbElementProvider::getInstance()
{

	if(NULL==instance_){
		instance_=new DbElementProvider;
	}
	return instance_;
}

//*
//	 *
const string * DbElementProvider::getDbName() const {

	return DB_NAME;
}

//*
//	 *
const string * DbElementProvider::getUsername() const {

	return USERNAME;
}

//*
//	 *
const string * DbElementProvider::getPassword() const {

	return PASSWORD;
}

DbElementProvider::DbElementProvider(){

	DB_NAME = new string("conservatoire");
	USERNAME = new string("root");
	PASSWORD = new string("root");
}

DbElementProvider * DbElementProvider::instance_=NULL;

